package org.timeismoney.payment.service;

import java.util.List;

import org.timeismoney.payment.common.PageBean;
import org.timeismoney.payment.model.Unit;
import org.timeismoney.payment.model.UnitLevel;

public interface UnitService extends BaseService<Unit, Integer> {

	public List<Unit> findUnitByParentUnitOrLevel(Unit unit);
	
	public List<Unit> findAllLeafUnit(int levelNo);
	
	public void batchInsertUnit(List<String[]> uploadList);
	
	public PageBean<Unit> findUnitByParentUnitOrLevel(Unit unit, PageBean<Unit> pageBean);
	
	public List<Unit> getUnitsByUnitLevel(UnitLevel ul);
}
